package ooday02;

public class OverRideDemo {
    public static void main(String[] args) {
        Student zg = new Student("张国良",454,"北京", "1班", 1001);
        zg.sayhi();
        Student zg2 = new Student("张国良",454,"北京", "1班", 1001);
        zg2.sayhi();

        Teacher ll = new Teacher("李老师", 45, "北京", 5000);
        ll.sayhi();
        Teacher ll3 = new Teacher("李老师", 45, "北京", 5000);
        ll3.sayhi();

        Doctor d = new Doctor("李医生","fdf" ,23, "doctor" );
        d.sayhi();
        Doctor d2 = new Doctor("李医生","fdf" ,23, "doctor");
        d2.sayhi();
    }
}
